package com.mes.biz.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.pagehelper.PageInfo;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.core.service.BaseServiceImpl;
import com.mes.biz.mapper.BizSpaceAdjustHeadMapper;
import com.mes.biz.domain.BizSpaceAdjustHead;
import com.mes.biz.service.BizSpaceAdjustHeadService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 仓位调整单表头Service业务层处理
 * @author wy
 * @email wy
 * @date 2024-04-03
 */
@Service
@Transactional(readOnly = true)
public class BizSpaceAdjustHeadServiceImpl extends BaseServiceImpl<BizSpaceAdjustHeadMapper, BizSpaceAdjustHead> implements BizSpaceAdjustHeadService {

    private static final Logger log = LoggerFactory.getLogger(BizSpaceAdjustHeadServiceImpl.class);

    /**
     * 获取单条数据
     * @param bizSpaceAdjustHead 仓位调整单表头
     * @return 仓位调整单表头
     */
    @Override
    public BizSpaceAdjustHead get(BizSpaceAdjustHead bizSpaceAdjustHead) {
        BizSpaceAdjustHead dto = super.get(bizSpaceAdjustHead);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 仓位调整单表头id
     * @return 仓位调整单表头
     */
    @Override
    public BizSpaceAdjustHead get(String id) {
        BizSpaceAdjustHead dto = super.get(id);
        return dto;
    }

    /**
     * 查询仓位调整单表头列表
     * @param bizSpaceAdjustHead 仓位调整单表头
     * @return 仓位调整单表头
     */
    @Override
    public List<BizSpaceAdjustHead> findList(BizSpaceAdjustHead bizSpaceAdjustHead) {
		List<BizSpaceAdjustHead> bizSpaceAdjustHeadList = super.findList(bizSpaceAdjustHead);
        return bizSpaceAdjustHeadList;
    }

    /**
     * 分页查询仓位调整单表头列表
     * @param bizSpaceAdjustHead 仓位调整单表头
     * @return 仓位调整单表头
     */
    @Override
    public PageInfo<BizSpaceAdjustHead> findPage(BizSpaceAdjustHead bizSpaceAdjustHead) {
		PageInfo<BizSpaceAdjustHead> page = super.findPage(bizSpaceAdjustHead);
        return page;
    }

    /**
     * 保存仓位调整单表头
     * @param bizSpaceAdjustHead
     * @return 结果
     */
    @Override
    public boolean save(BizSpaceAdjustHead bizSpaceAdjustHead) {
        return super.save(bizSpaceAdjustHead);
    }

    /**
     * 删除仓位调整单表头信息
     * @param bizSpaceAdjustHead
     * @return 结果
     */
    @Override
    public boolean remove(BizSpaceAdjustHead bizSpaceAdjustHead) {
        return super.remove(bizSpaceAdjustHead);
    }

    /**
     * 批量删除仓位调整单表头
     * @param ids 需要删除的仓位调整单表头ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteBizSpaceAdjustHeadByIds(String[] ids) {
        return mapper.deleteBizSpaceAdjustHeadByIds(ids, BaseEntity.DEL_FLAG_DELETE);
    }

}
